package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.Result;
import com.lxm.dto.TradeDTO;
import com.lxm.entity.Trade;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 交易表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface TradeService extends IService<Trade> {

    @Transactional
    Result deleteTrade(Long tradeId);

    @Transactional
    Result addTrade(TradeDTO trade);

    Result historyTradeList(Integer pageNum);
}
